package com.yjd.comm.enums;

/**
 * Created by yjd-wap on 2017/10/20.
 */
public enum OrgMoldEnum {
    ORDINARY(1, "普通机构"),
    VIP(2, "vip机构");

    private int code;
    private String label;

    public static OrgMoldEnum parse(int code) {
        for (OrgMoldEnum v : OrgMoldEnum.values()) {
            if (v.getCode() == code) {
                return v;
            }
        }
        return null;
    }

    private OrgMoldEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
